package com.da.web.school_student.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.da.cache.MyCache;
import com.da.web.school_student.entity.SchoolStudent;
import com.da.web.school_student.entity.StuParm;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

/**
 * @author da
 * @time 2023/12/6 下午 2:59
 */
@CacheNamespace(implementation = MyCache.class, eviction = MyCache.class)
public interface SchoolStudentMapper extends BaseMapper<SchoolStudent> {
    //通过id查询学生信息
    SchoolStudent getStuById(@Param("stuId") Long stuId);

    IPage<SchoolStudent> getList(IPage<SchoolStudent> page, @Param("parm") StuParm parm);

    //通过id查询学生信息,有角色信息
    SchoolStudent getById(@Param("stuId") Long stuId);
}
